import request from '@/utils/request'
// import axios from 'axios'
// 登录
export const login = () => {
  return request({
    url: '/sys/login',
    method: 'post',
    data: {
      mobile: '13800000002',
      password: '123456'
    },
    xxx: 123,
    noToken: true
  })
}
// let fn = () => {}
export const sysProfile = () => {
  // 调用上一次的取消方法
  // fn()
  return request({
    url: '/sys/profile',
    method: 'post'
    // noCancel: true
    // cancelToken: new axios.CancelToken(cancel => {
    // cancel取消此次请求的方法
    // fn = cancel
    // })
  })
}
